import unittest


class TestDemo(unittest.TestCase):
    @unittest.skip('跳过test_01')
    def test_01(self):
        print('test_01')

    @unittest.skipIf(1 > 0, '条件成立时跳过test_02')
    def test_02(self):
        print('test_02')

    @unittest.skipUnless(1 < 0, '条件不成立时跳过')
    def test_03(self):
        print('test_03')

    @unittest.expectedFailure
    def test_04(self):
        print('test_04')


if __name__ == '__main__':
    unittest.main(verbosity=2)
